package com.suning.sawp.web.controller.in;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.suning.sawp.intf.assistant.AssistantService;
import com.suning.sawp.web.controller.DjBaseController;
import com.suning.sawp.web.exception.MyGsonView;
@Controller
@RequestMapping("/assistant")
public class AssistantClientController extends DjBaseController{

        @Autowired
        AssistantService assistantService;
        
        @RequestMapping("/queryAssistant.do")
        public MyGsonView queryAssistant(){
            MyGsonView result = createGsonView();
            result.addStaticAttribute("assistant", assistantService.queryAssistant());
            return result;
        }
}
